Component({
    options: {
        addGlobalClass: true,
    },
    properties: {
        list: {
            type: Array,
            value: []
        }
    },
    data: {
        swiper: {
            margin: "140rpx"
        },
        currentIndex: 0
    },

    methods: {
        swiperChange: function (e) {
            this.setData({
                currentIndex: e.detail.current
            })
        },
        cardClick(e) {
            this.triggerEvent('cardClick', {
                type: e.currentTarget.dataset.type
            })
        }
    }
})